#include<stdio.h>
int main(void)
{
    int day,num,i;

    scanf("%d",&day);

    for(num=1,i=1;i<day;i++){
        num = (num+1)*2;
    }

    printf("%d",num);

    return 0;
}